with open('pi.txt') as file_object:
    contents = file_object.read()
    print(contents)

print('------------next-------------')
with open('pi.txt') as file_object:
    #contents = file_object.read()
    for line in file_object:
        print(line.rstrip())

print('------------next-------------')
with open('pi.txt') as file_object:
    #contents = file_object.read()
    lines = file_object.readlines()

pi_string = ''

for line in lines:
    pi_string += line.strip()
print(pi_string[:7]+'...')
print(len(pi_string))

birthday = input("Enter your birthday, in the form mmddyy: ")
if birthday in pi_string:
    print("Your birthday appears in the first million digits of pi!")
else:
    print("Your birthday does not appear in the first million digits of pi.")